Sha256: 228e55e7feac7a1b6fafd1c4d405f89cfc4e61c38cf0d7dc7b158eecded490f0

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 Bytes

Contents

class HelloWorldComponent < Components::Base
  helper_method :get_string

  def say_it(string)
    string
  end

  def say_it_with_style(string)
    bolded(string)
  end

  def say_it_with_help(string)
    @string = string
    render
  end

  def bolded(string)
    @string = string
    render
  end

  protected

  def get_string
    @string
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
langalex-components-0.0.1 test/app/components/hello_world_component.rb
langalex-components-0.0.2 test/app/components/hello_world_component.rb
langalex-components-0.0.3 test/app/components/hello_world_component.rb
langalex-components-0.0.4 test/app/components/hello_world_component.rb
components-0.0.5 test/app/components/hello_world_component.rb