File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ def page_methods(options)
6060
6161 def __hide? ( opts )
6262 black , white = opts . values_at ( :unless , :if )
63- ( black && instance_eval ( black . to_s ) ) ||
64- ( white && !instance_eval ( white . to_s ) )
63+ ( black && public_send ( black ) ) || ( white && !public_send ( white ) )
6564 end
6665end
6766
Original file line number Diff line number Diff line change 33# rubocop:disable Style/ClassAndModuleChildren
44module Tram
55 class Page
6- VERSION = "0.1.3 "
6+ VERSION = "0.1.4 "
77 end
88end
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class ExamplePage < Tram::Page
55
66 section :bar , if : "bar"
77 section :foo , method : :foo_alias
8- section :baz , value : -> { foo } , unless : " foo.nil?"
8+ section :baz , value : -> { foo } , if : : foo
99
1010 def bar
1111 foo
You can’t perform that action at this time.
0 commit comments